\hypertarget{class_user_node2_protocol}{}\section{User\+Node2\+Protocol Class Reference}
\label{class_user_node2_protocol}\index{User\+Node2\+Protocol@{User\+Node2\+Protocol}}
Inheritance diagram for User\+Node2\+Protocol\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{class_user_node2_protocol}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_user_node2_protocol_a0a63943e5e1535596f1daa0f1597b78c}\label{class_user_node2_protocol_a0a63943e5e1535596f1daa0f1597b78c}} 
void {\bfseries signal\+Sendto\+Logic\+Level\+Code} ()
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_user_node2_protocol_ae556708b69b0c7978b23826f5fa37838}\label{class_user_node2_protocol_ae556708b69b0c7978b23826f5fa37838}} 
{\bfseries User\+Node2\+Protocol} (Q\+Object $\ast$parent=nullptr)
\item 
\mbox{\Hypertarget{class_user_node2_protocol_ae8e9154d5180ae33b76e0104f933e8d0}\label{class_user_node2_protocol_ae8e9154d5180ae33b76e0104f933e8d0}} 
void {\bfseries recv\+Command1} (const \mbox{\hyperlink{class_user_node2_message}{User\+Node2\+Message}} \&msg)
\item 
\mbox{\Hypertarget{class_user_node2_protocol_a5ca60e631151f2eacc2aab4688a2e54b}\label{class_user_node2_protocol_a5ca60e631151f2eacc2aab4688a2e54b}} 
void {\bfseries recv\+Command2} (const \mbox{\hyperlink{class_user_node2_message}{User\+Node2\+Message}} \&msg)
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual quint16 \mbox{\hyperlink{class_user_node2_protocol_a33e438499c773f7c51f62537a98bb48a}{minlength}} () override
\begin{DoxyCompactList}\small\item\em 最小包长 \end{DoxyCompactList}\item 
virtual quint16 \mbox{\hyperlink{class_user_node2_protocol_a79735a944102084e4b2da6c8cd6f598f}{maxlength}} () override
\begin{DoxyCompactList}\small\item\em 最大包长 \end{DoxyCompactList}\item 
virtual quint16 \mbox{\hyperlink{class_user_node2_protocol_acc3d5dace667ef971078b7f605b9be6a}{splitter}} (const Q\+Byte\+Array \&l) override
\begin{DoxyCompactList}\small\item\em 语法解析器 从流中解析报文长度 /.../quint16 size/.../.../... \end{DoxyCompactList}\item 
virtual bool \mbox{\hyperlink{class_user_node2_protocol_acba30f215b45c57d2cc89d3aecdae064}{dispatcher}} (const Q\+Byte\+Array \&m) override
\begin{DoxyCompactList}\small\item\em 语义解析器 分发报文 /.../quint16 size/.../\+Q\+Byte\+Array data/.../ \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_user_node2_protocol_acba30f215b45c57d2cc89d3aecdae064}\label{class_user_node2_protocol_acba30f215b45c57d2cc89d3aecdae064}} 
\index{User\+Node2\+Protocol@{User\+Node2\+Protocol}!dispatcher@{dispatcher}}
\index{dispatcher@{dispatcher}!User\+Node2\+Protocol@{User\+Node2\+Protocol}}
\subsubsection{\texorpdfstring{dispatcher()}{dispatcher()}}
{\footnotesize\ttfamily virtual bool User\+Node2\+Protocol\+::dispatcher (\begin{DoxyParamCaption}\item[{const Q\+Byte\+Array \&}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}



语义解析器 分发报文 /.../quint16 size/.../\+Q\+Byte\+Array data/.../ 


\begin{DoxyParams}{Parameters}
{\em 数据包} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 no dispatched(others) 1 dispatched(own) 
\end{DoxyReturn}


Reimplemented from \mbox{\hyperlink{class_q_qt_protocol_a35a69c4b89c8cf7459038f40d75e0dc9}{Q\+Qt\+Protocol}}.

\mbox{\Hypertarget{class_user_node2_protocol_a79735a944102084e4b2da6c8cd6f598f}\label{class_user_node2_protocol_a79735a944102084e4b2da6c8cd6f598f}} 
\index{User\+Node2\+Protocol@{User\+Node2\+Protocol}!maxlength@{maxlength}}
\index{maxlength@{maxlength}!User\+Node2\+Protocol@{User\+Node2\+Protocol}}
\subsubsection{\texorpdfstring{maxlength()}{maxlength()}}
{\footnotesize\ttfamily virtual quint16 User\+Node2\+Protocol\+::maxlength (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}



最大包长 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Reimplemented from \mbox{\hyperlink{class_q_qt_protocol_af41bc3116abbbcfc9af45e151a253ff7}{Q\+Qt\+Protocol}}.

\mbox{\Hypertarget{class_user_node2_protocol_a33e438499c773f7c51f62537a98bb48a}\label{class_user_node2_protocol_a33e438499c773f7c51f62537a98bb48a}} 
\index{User\+Node2\+Protocol@{User\+Node2\+Protocol}!minlength@{minlength}}
\index{minlength@{minlength}!User\+Node2\+Protocol@{User\+Node2\+Protocol}}
\subsubsection{\texorpdfstring{minlength()}{minlength()}}
{\footnotesize\ttfamily virtual quint16 User\+Node2\+Protocol\+::minlength (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}



最小包长 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Reimplemented from \mbox{\hyperlink{class_q_qt_protocol_a2b00f53d3dd0eed817eeecff422891f3}{Q\+Qt\+Protocol}}.

\mbox{\Hypertarget{class_user_node2_protocol_acc3d5dace667ef971078b7f605b9be6a}\label{class_user_node2_protocol_acc3d5dace667ef971078b7f605b9be6a}} 
\index{User\+Node2\+Protocol@{User\+Node2\+Protocol}!splitter@{splitter}}
\index{splitter@{splitter}!User\+Node2\+Protocol@{User\+Node2\+Protocol}}
\subsubsection{\texorpdfstring{splitter()}{splitter()}}
{\footnotesize\ttfamily virtual quint16 User\+Node2\+Protocol\+::splitter (\begin{DoxyParamCaption}\item[{const Q\+Byte\+Array \&}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}



语法解析器 从流中解析报文长度 /.../quint16 size/.../.../... 


\begin{DoxyParams}{Parameters}
{\em 接收到的数据段} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
按照协议解析到的数据长度 可用，继续接收，丢弃，粘包。 
\end{DoxyReturn}


Reimplemented from \mbox{\hyperlink{class_q_qt_protocol_a00fd0c1ac23379ed3b9b25da9a34f39b}{Q\+Qt\+Protocol}}.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/examples/qqtnetworkexample/usernode2protocol.\+h\end{DoxyCompactItemize}
